package com.qiaofang.generator.facade;

import com.github.ltsopensource.spring.boot.annotation.EnableTaskTracker;
import com.qiaofang.common.datasource.DynamicDataSource;
import com.qiaofang.common.feignset.config.FeignConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration(exclude = {DynamicDataSource.class,DataSourceAutoConfiguration.class})
@SpringBootApplication
@ComponentScan(basePackages = {"com.qiaofang.generator", "com.qiaofang.*.stub.feign",
        "com.qiaofang.generator.task","com.qiaofang.generator.service"})
@MapperScan("com.qiaofang.generator.dao.mapper")
@EnableFeignClients(value = {"com.qiaofang.*.stub", "com.qiaofang.**.stub"}, defaultConfiguration = FeignConfiguration.class)
@EnableTaskTracker
public class GeneratorApplication {
    public static void main(String[] args) {
        SpringApplication.run(GeneratorApplication.class,args);
    }
}
